package com.zjitc.service;

import com.zjitc.model.Cart;
import com.zjitc.model.User;
import java.util.Date;
import java.util.List;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/4/17 15:45
 * @description:
 */

public interface UserService {

  User login(String username, String password);

  int checkUsernameCount(String username);

  void insertUser(String username, String password, String email, String phone, String question,
      String answer, Date create_time, Date update_time, Integer role);

  List<Cart> cartLIst(String username);

  void addCart(int catid, String username, String uuid);

  User findAll(String username);

  void changeRole(String username);
}
